package com.un.ebs.product.mapper;

import com.un.ebs.product.domain.ProductAttrValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author liubo
 * @since 2019-09-21
 */
@Component
public interface ProductAttrValueMapper extends BaseMapper<ProductAttrValue> {

    @Select("select * from tb_product_attr_value where product_id=#{productId} and class_attr_id=#{attrId} and class_attr_value_id=#{valueId}")
    ProductAttrValue selectBy(@Param("productId") String productId,@Param("attrId") String attrId,@Param("valueId") String valueId);
}
